package com.mac.intellect_flow.framework.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SwaggerConfig {

   // 设置 openapi 基础参数
   @Bean
   public OpenAPI customOpenAPI() {
       return new OpenAPI()
               .info(new Info()
                       .title("智能工单系统系统管理")
                       .contact(new Contact().name("mac").email("mac@163.com").url("https://gitee.com/mac2019"))
                       .version("1.0")
                       .description( "智能工单系统系统管理API")
                       .license(new License().name("Apache 2.0")));
   }
}
